package com.wjw.cloud.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;

/**
 * 数据传输对象
 * 商品添加修改参数
 */
@Getter
@Setter
public class GoodsParam {

    @ApiModelProperty(value = "商品图片", required = true)
    private String img;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;

    @ApiModelProperty(value = "是否包邮", required = true)
    private Integer post;

    @NotEmpty
    @ApiModelProperty(value = "商品描述", required = true)
    private String describe;

    @NotEmpty
    @ApiModelProperty(value = "店铺名称", required = true)
    private String storeName;

}
